$(function() {
	
	/********banner轮播图 s************/
	var indKv = new Swiper(".banner",{
		loop:true,
		nextButton: '.swiper-button-next',
		prevButton:'.swiper-button-prev',
		autoplayDisableOnInteraction:false,
		autoplay: 3000,
		pagination:'.swiper-pagination',
	});
	
	
	/********产品轮播图 E************/
	
	var productLunbo = new Swiper(".wrap-lunbo",{
		slidesPerView:5,
		loop:true,
		nextButton: '.swiper-button-next',
		prevButton:'.swiper-button-prev'
	});
	
	/*******中英文切换*********/
	$(".ex_language").on("click", function () {
        exchange_language();
    })

    function exchange_language() {
        if (now_language == "ch_") {
            now_language = "en_";
        } else {
            now_language = "ch_";
        }
        $.ajax({
            url: "/index/index/exchange_language",
            type: "POST",
            async: false,
            dataType: "json",
            data: {'now_type': now_language},
            success: function () {
                location.reload();
            }
        })
    }
	
})